#version 130   
#extension EXT_gpu_shader4 : require  
#extension GL_EXT_geometry_shader4 : require  

//#define USING_ID_BUFFER

uniform float lod;

#ifdef USING_ID_BUFFER
	uniform float anatomyId; // or model
	uniform float animationId;
#endif 

void main ()
{
	vec4 pos = gl_PositionIn[0];

#ifdef USING_ID_BUFFER
	if (pos.y == animationId && pos.w == lod )
	{
#else 
	if ( lod == pos.w  )
	{
#endif
	
		gl_Position =  pos;

		
		EmitVertex();
		EndPrimitive();	
	}

}